package com.example.learnspringboot10rabbitmq;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/*
    Docker安装rabbitMQ
    https://blog.csdn.net/WLPJLP/article/details/125449712
    https://blog.csdn.net/weixin_39801446/article/details/124470698
    https://blog.csdn.net/mtm001/article/details/123015806

    RabbitMQ入门之安装
    https://www.jianshu.com/p/8b5ac7ada354

    https://blog.csdn.net/qq_45472675/article/details/110951399


    https://blog.csdn.net/menxu_work/article/details/125088594

    RabbitMQ 官网指南
    https://www.rabbitmq.com/tutorials/tutorial-one-java.html


 */

/**
 * 自动配置
 *  1、RabbitAutoConfiguration
 *  2、有自动配置了连接工厂ConnectionFactory；
 *  3、RabbitProperties 封装了 RabbitMQ的配置
 *  4、 RabbitTemplate ：给RabbitMQ发送和接受消息；
 *  5、 AmqpAdmin ： RabbitMQ系统管理功能组件;
 *  	AmqpAdmin：创建和删除 Queue，Exchange，Binding
 *  6、@EnableRabbit +  @RabbitListener 监听消息队列的内容
 *
 */
@EnableRabbit  //开启基于注解的RabbitMQ模式
@SpringBootApplication
public class LearnSpringBoot10RabbitMqApplication {

    public static void main(String[] args) {
        SpringApplication.run(LearnSpringBoot10RabbitMqApplication.class, args);
    }

}
